﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mParametric.UI
{
    public partial class frmPAR_Main : frmModuleBase
    {
        public frmPAR_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mParametric; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuPAR_DrawingSearch_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPAR_DwgSearch), sender as ToolStripMenuItem);
        }

        private void menuPAR_Test_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPAR_Test), sender as ToolStripMenuItem);
        }

        private void menuPAR_MDL_Aluminum_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Section_Info", 0, true, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_STD_Part_Parameter_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, true, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_STD_Model_Generate_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_STD_Drawing_Generate_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_SJR_Model_Create_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_SJR_Part_Release_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_SJR_Drawing_Output_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Parameter_Parts", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuPAR_STD_Model_Release_Click(object sender, EventArgs e)
        {

        }

    }
}